package cn.wolfcode.trip.base.service.impl;

import cn.wolfcode.trip.base.mapper.InsuranceMapper;
import cn.wolfcode.trip.base.query.QueryObject;
import cn.wolfcode.trip.base.service.IInsuranceService;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class InsuranceServiceImpl implements IInsuranceService{
    @Autowired
    InsuranceMapper insuranceMapper;
    public PageInfo queryForList(QueryObject qo) {
        PageHelper.startPage(qo.getCurrentPage(),qo.getPageSize(),qo.getOrderBy());
        return  new PageInfo(insuranceMapper.queryForList(qo));
    }
}
